home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Zsrv.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
- // From: Zsrv.pas
- //----------------------------------------------------------------------------
- #ifndef ZsrvHPP
- #define ZsrvHPP
- //----------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <TypInfo.hpp>
- #include <SysUtils.hpp>
- #include <OLE2.hpp>
- #include <Windows.hpp>
- #include <System.hpp>
- #pragma warn -par
- #pragma warn -hid
- #pragma warn -inl
-
- namespace Zsrv
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) IDelphiTypeInfo;
- class __declspec(delphiclass) IObjectDispatch;
- class __declspec(pascalimplementation) IObjectDispatch : public Ole2::IDispatch
- {
- typedef Ole2::IDispatch inherited;
-
- private:
- int RefCount;
- System::TObject* FObject;
- IDelphiTypeInfo* FTypeInfo;
-
- protected:
- void __fastcall NewDispatch(VARIANTARG &V, System::TObject* Obj);
- __property System::TObject* BoundObject = {read=FObject, nodefault};
-
- public:
- __fastcall virtual IObjectDispatch(System::TObject* Obj);
- __fastcall virtual ~IObjectDispatch(void);
- virtual long __stdcall QueryInterface(const GUID &iid, void *Obj);
- virtual long __stdcall AddRef(void);
- virtual long __stdcall Release(void);
- virtual long __stdcall GetTypeInfoCount(int &pctinfo);
- virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
- virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long
- lcid, Ole2::PDispIDList rgdispid);
- virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
- &dispParams, System::PVariant VarResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
- };
-
- class __declspec(pascalimplementation) IDelphiTypeInfo : public Ole2::ITypeInfo
- {
- typedef Ole2::ITypeInfo inherited;
-
- private:
- int FRefCount;
- IObjectDispatch* FDisp;
- Typinfo::TPropList *FPropInfos;
- int FPropCount;
-
- public:
- __fastcall IDelphiTypeInfo(IObjectDispatch* Disp);
- __fastcall virtual ~IDelphiTypeInfo(void);
- virtual long __stdcall QueryInterface(const GUID &iid, void *Obj);
- virtual long __stdcall AddRef(void);
- virtual long __stdcall Release(void);
- virtual long __stdcall GetTypeAttr(Ole2::PTypeAttr &pptypeattr);
- virtual long __stdcall GetTypeComp(Ole2::ITypeComp* &pptcomp);
- virtual long __stdcall GetFuncDesc(int index, Ole2::PFuncDesc &ppfuncdesc);
- virtual long __stdcall GetVarDesc(int index, Ole2::PVarDesc &ppvardesc);
- virtual long __stdcall GetNames(long memid, Ole2::PBStrList rgbstrNames, int cMaxNames, int &cNames
- );
- virtual long __stdcall GetRefTypeOfImplType(int index, long &phreftype);
- virtual long __stdcall GetImplTypeFlags(int index, int &pimpltypeflags);
- virtual long __stdcall GetIDsOfNames(Ole2::POleStrList rgpszNames, int cNames, Ole2::PMemberIDList
- rgmemid);
- virtual long __stdcall Invoke(void * pvInstance, long memid, Word Flags, DISPPARAMS &dispparams,
- System::PVariant VarResult, Ole2::PExcepInfo excepinfo, Windows::PInteger ArgErr);
- virtual long __stdcall GetDocumentation(long memid, Ole2::PBStr pbstrName, Ole2::PBStr pbstrDocString
- , Windows::PLongint pdwHelpContext, Ole2::PBStr pbstrHelpFile);
- virtual long __stdcall GetDllEntry(long memid, long invkind, wchar_t * &bstrDllName, wchar_t * &bstrName
- , Word &wOrdinal);
- virtual long __stdcall GetRefTypeInfo(long reftype, Ole2::ITypeInfo* &tinfo);
- virtual long __stdcall AddressOfMember(long memid, long invkind, void * &ppv);
- virtual long __stdcall CreateInstance(Ole2::IUnknown* unkOuter, const GUID &iid, void *vObj);
- virtual long __stdcall GetMops(long memid, wchar_t * &bstrMops);
- virtual long __stdcall GetContainingTypeLib(Ole2::ITypeLib* &tlib, int &pindex);
- virtual void __stdcall ReleaseTypeAttr(Ole2::PTypeAttr ptypeattr);
- virtual void __stdcall ReleaseFuncDesc(Ole2::PFuncDesc pfuncdesc);
- virtual void __stdcall ReleaseVarDesc(Ole2::PVarDesc pvardesc);
- };
-
- typedef System::TMetaClass*TObjectDispatchClassRef;
-
- typedef void __fastcall (__closure *TDispGetProp)(DISPPARAMS &DispParams, System::PVariant VarResult
- , long &SCode);
-
- class __declspec(delphiclass) ICustomDispatch;
- class __declspec(pascalimplementation) ICustomDispatch : public IObjectDispatch
- {
- typedef IObjectDispatch inherited;
-
- protected:
- void __fastcall AddCustomProp(System::TMetaClass* BaseClass, const System::AnsiString PropName, TDispGetProp
- GetMethod);
-
- public:
- __fastcall virtual ICustomDispatch(System::TObject* Obj);
- virtual void __fastcall DefineCustomProps(void);
- virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long
- lcid, Ole2::PDispIDList rgdispid);
- virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
- &dispParams, System::PVariant VarResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
- public:
-
- /* IObjectDispatch.Destroy */ __fastcall virtual ~ICustomDispatch(void) { }
-
- };
-
- class __declspec(delphiclass) IComponentDispatch;
- class __declspec(pascalimplementation) IComponentDispatch : public ICustomDispatch
- {
- typedef ICustomDispatch inherited;
-
- private:
- void __fastcall GetComponents(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetComponentsCount(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
-
- void __fastcall GetComponentsIndex(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
-
- void __fastcall GetClassName(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetObject(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetOwner(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetInheritsFrom(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetDesignInfo(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
-
- public:
- virtual void __fastcall DefineCustomProps(void);
- public:
- /* ICustomDispatch.Create */ __fastcall virtual IComponentDispatch(System::TObject* Obj) : Zsrv::ICustomDispatch(
- Obj) { }
-
- public:
- /* IObjectDispatch.Destroy */ __fastcall virtual ~IComponentDispatch(void) { }
-
- };
-
- class __declspec(delphiclass) IControlDispatch;
- class __declspec(pascalimplementation) IControlDispatch : public IComponentDispatch
- {
- typedef IComponentDispatch inherited;
-
- private:
- void __fastcall GetEnabled(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetText(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetParent(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
-
- public:
- virtual void __fastcall DefineCustomProps(void);
- public:
- /* ICustomDispatch.Create */ __fastcall virtual IControlDispatch(System::TObject* Obj) : Zsrv::IComponentDispatch(
- Obj) { }
-
- public:
- /* IObjectDispatch.Destroy */ __fastcall virtual ~IControlDispatch(void) { }
-
- };
-
- class __declspec(delphiclass) IWinControlDispatch;
- class __declspec(pascalimplementation) IWinControlDispatch : public IControlDispatch
- {
- typedef IControlDispatch inherited;
-
- private:
- void __fastcall GetHandle(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetControls(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
- void __fastcall GetControlCount(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
-
- public:
- virtual void __fastcall DefineCustomProps(void);
- public:
- /* ICustomDispatch.Create */ __fastcall virtual IWinControlDispatch(System::TObject* Obj) : Zsrv::IControlDispatch(
- Obj) { }
-
- public:
- /* IObjectDispatch.Destroy */ __fastcall virtual ~IWinControlDispatch(void) { }
-
- };
-
- class __declspec(delphiclass) IApplicationDispatch;
- class __declspec(pascalimplementation) IApplicationDispatch : public IComponentDispatch
- {
- typedef IComponentDispatch inherited;
-
- private:
- void __fastcall GetDispFromHandle(DISPPARAMS &Params, System::PVariant VarResult, long &SCode);
-
- public:
- virtual void __fastcall DefineCustomProps(void);
- public:
- /* ICustomDispatch.Create */ __fastcall virtual IApplicationDispatch(System::TObject* Obj) : Zsrv::
- IComponentDispatch(Obj) { }
-
- public:
- /* IObjectDispatch.Destroy */ __fastcall virtual ~IApplicationDispatch(void) { }
-
- };
-
- class __declspec(delphiclass) IDispatchFactory;
- class __declspec(pascalimplementation) IDispatchFactory : public Ole2::IClassFactory
- {
- typedef Ole2::IClassFactory inherited;
-
- private:
- int RefCount;
- Ole2::IDispatch* FDispatch;
-
- public:
- __fastcall IDispatchFactory(Ole2::IDispatch* Dispatch);
- __fastcall virtual ~IDispatchFactory(void);
- virtual long __stdcall QueryInterface(const GUID &iid, void *Obj);
- virtual long __stdcall AddRef(void);
- virtual long __stdcall Release(void);
- virtual long __stdcall CreateInstance(Ole2::IUnknown* UnkOuter, const GUID &iid, void *vObj);
- virtual long __stdcall LockServer(DWord fLock);
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define FirstComponentIndex (Byte)(16)
- #define LastComponentIndex (int)(65535)
- #define FirstCustomPropIndex (int)(-2147483648)
- #define LastCustomPropIndex (int)(-65536)
- #define FirstPropIndex (int)(65535)
- #define LastPropIndex (int)(2147483647)
- extern void __fastcall RegisterAutomationEnabler(System::TMetaClass* ObjectClass, System::TMetaClass*
- DispClass);
- extern long __fastcall HandleInvokeException(Ole2::PExcepInfo ExcepInfo);
-
- } /* namespace Zsrv */
-
- #pragma warn .par
- #pragma warn .hid
- #pragma warn .inl
-
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Zsrv;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Zsrv
-